import { stringify } from 'qs';
import request from '@/utils/request';

export async function queryHotel() {
  return request('/api/admin/hotel');
}

export async function queryHotelInfo(id){
  return request(`/api/admin/hotel/${id}`);
}

export async function updateHotelInfo(params){
  return request('/api/admin/update/hotel', {
    method: 'POST',
    body: params,
  });
}

export async function queryHotelRoom(hotelId){
  return request(`/api/admin/hotel/room/${hotelId}`);
}

export async function updateHotelRoom(params){
  return request('/api/admin/hotel/update/room', {
    method: 'POST',
    body: params,
  });
}

export async function addHotelRoom(params){
  return request('/api/admin/hotel/add/room', {
    method: 'POST',
    body: params,
  });
}